package cn.miaoyao.miaoyaoms.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author sun
 * @since 2023-05-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_notice")
@ApiModel(value="Notice对象", description="")
public class Notice implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "通知标题")
    @TableField("noticeTitle")
    private String noticetitle;

    @ApiModelProperty(value = "通知时间")
    @TableField("noticeTime")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date noticetime;

    @ApiModelProperty(value = "通知内容")
    @TableField("noticeContent")
    private String noticecontent;

    @ApiModelProperty(value = "管理人员id")
      @TableId(value = "uid", type = IdType.ASSIGN_ID)
    private Integer uid;


}
